package test;

import java.net.InetAddress;
import java.net.UnknownHostException;
import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

import com.apply.entity.User;

public class test {

	
	public static void main(String[] args) throws ParseException{
		
		
		Date d = new Date();
	
		SimpleDateFormat s = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	    String time = s.format(d);
		System.out.println(time);
	    long a= s.parse("2012-02-11 10:1:1").getTime();
		
		System.out.println(a);
		
		

		Random r = new Random();
		Double i = r.nextDouble();
		String str = i.toString().substring(2,12);
		System.out.println(str);
		
		
		System.out.println(10%3);
		
	}
}
